import ActionGroup from "./ActionGroup.vue"
import moment from "moment";
/**
 * tooltip {boolean}  
 */
const columns = (showOperate) => {
  let arr = [
    {
      label: 'ID',
      prop: 'id',
      width: 200,
      tooltip: false,
    },
    {
      label: 'City',
      prop: 'city',
      tooltip: false,
    },
  ]
  if (showOperate) {
    arr.push({
      label: "Operate",
      width: 220,
      render: ActionGroup
    })
  }
  return arr;
};
export default columns;